package com.yisu.auction.manager.core.mapper;


import com.yisu.auction.ewf.entity.OfferPriceLog;
import com.yisu.auction.ewf.entity.OfferPriceLogArchive;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OfferPriceLogArchiveMapper {
    int insert(OfferPriceLog record);

    int insertSelective(OfferPriceLog record);

    int insertOfferPriceLogArchiveSelective(OfferPriceLogArchive record);

    int deleteOfferPriceLogArchiveById(long id);

    /**
     * author: 赵杰
     * Business Description：通过prizeId获取归档数据列表
     * @return
     */
    List<OfferPriceLogArchive> getListByPrizeId(@Param("prizeId") long prizeId);

    /**
     * author: 赵杰
     * Business Description：通过prizeId获取归档数据总记录
     * @return
     */
    int getTotalCountByPrizeId(@Param("prizeId") long prizeId);

    /**
     * author: 赵杰
     * Business Description：通过prizeId获取此次竞拍是否存在真实用户
     * @return
     */
    int isExitTrueUserByPrizeId(@Param("prizeId") long prizeId);
}